|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface SimulatorView
A graphical view of the simulation grid. This interface defines all possible different views.
| Method Summary | |
|---|---|
boolean |
isViable(Field field)
Determine whether the simulation should continue to run. |
void |
reset()
Prepare for a new run. |
void |
setColor(Class animalClass,
Color color)
Define a color to be used for a given class of animal. |
void |
showStatus(int step,
Field field)
Show the current status of the field. |
| Method Detail |
|---|
boolean isViable(Field field)
void reset()
void setColor(Class animalClass,
Color color)
animalClass - The animal's Class object.color - The color to be used for the given class.
void showStatus(int step,
Field field)
step - Which iteration step it is.field - The field whose status is to be displayed.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||